<template>
  <div>
    <h2>1.v-bind的基本使用</h2>
    <img v-bind:src="imgUrl" alt="" style="width: 40px" />
    <a v-bind:href="link">百度一下吧亲</a>
  </div>
</template>

<script>
export default {
  name: 'vbind',
  data() {
    return {
      imgUrl: 'https://v2.cn.vuejs.org/images/logo.svg',
      link: 'https://www.baidu.com'
    }
  }
}
</script>

<style lang="scss" scoped></style>
